package br.uefs.ecomp.myBook.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class WriteMessageTest extends JFrame implements ActionListener{
	
	private WriteMessageTest(){
		WriteMessagePanel panel = new WriteMessagePanel(this);
		setSize(500,200);
		add(panel);
	}
	
	public static void main(String[] args){
		(new WriteMessageTest()).setVisible(true);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		JOptionPane.showMessageDialog(this, e.getActionCommand());
	}
	
}
